package my.edu.model.User.entity.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

@Data
public class UserPwdDTO {
    @Size(min = 6, message = "密码长度不能小于6位")
    @NotBlank(message = "旧密码不能为空")
    private String oldpassword;
    @Size(min = 6, message = "密码长度不能小于6位")
    @NotBlank(message = "旧密码不能为空")
    private String confirmPassword;
    @Size(min = 6, message = "密码长度不能小于6位")
    @NotBlank(message = "密码不能为空")
    private String password;
}
